<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<meta name="x5-orientation" content="portrait" />
	<meta name="x5-fullscreen" content="true" />
	<meta name="screen-orientation" content="portrait" />
	<meta name="full-screen" content="yes" />
	<link rel="stylesheet" type="text/css" href="css/reset.css" />
	<link rel="stylesheet" type="text/css" href="css/layer_mobile.css"/>
	<link rel="stylesheet" href="css/security_settings.css" />
	<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="js/layer_mobile.js"></script>
	<script type="text/javascript" src="js/index.js"></script>
	<title>安全设置</title>
</head>
<body>
	<!-- header_头部  -->
	<header>
		<p>
			<a href="personal_center.html"></a>
			<i>安全设置</i>
		</p>
	</header>
	<!--section_骨架-->
	<section>
		<div><i>修改密码</i><em></em></div>
		<p><button>退出登录</button></p>
	</section>
</body>
</html>
<script>
	$(function(){
		//打开修改密码
		$('section>div').on('click',function(){
			window.location.href='change_password.html'	
		})
		//退出登录
		$('section>p').on('click',function(){
			localStorage.clear(); 
			$.ajax({
				type:"post",
				url:site+"/login/logout",
				dataType:'json',
				success:function(data){
					alerts('退出登录成功')
					window.location.href='./login.html'
				}
			});
		})
	})
</script>